<template>
  <view>
    <!-- 统一的mask -->
    <view class="mask" v-if="showMask || showLoadPopup || showGroupMenu" @click="handleMaskClick"></view>
  </view>
</template>

<script>
export default {
  methods: {
    // 统一的mask点击处理
    handleMaskClick() {
      if (this.showMask) {
        this.hideMenu()
      }
      if (this.showLoadPopup) {
        this.hideLoadPopup()
      }
      if (this.showGroupMenu) {
        this.showGroupMenu = false
      }
    }
  }
}
</script> 